<template>
  <span>
    <template v-for="item in dicts.crm_follow_type">
      <a v-if="data.followType.toString() === item.dictCode" :key="item.id" title="查看明细" @click="toView">{{ item.dictName }}</a>
    </template>
  </span>
</template>
<script>
export default {
  components: { },
  dictTypes: ['crm_follow_type', 'enable_flag'],
  props: {
    sup_this: {
      type: Object,
      required: true
    },
    data: {
      type: Object,
      required: true
    }
  },
  methods: {
    toView() {
      const _this = this.sup_this.$refs.form
      _this.initDataOfBefore()
      _this.viewMainData(this.data.id)
    }
  }
}
</script>

<style scoped>
  div{
    display: inline-block;
    margin-right: 3px;
  }
</style>
